<ul class="nav nav-tabs" role="tablist">
  {% ifequal report_page "ctm_error_rate" %}
  <li role="presentation" class="active">
  {% else %}
  <li role="presentation">
  {% endifequal %}  
    <a href="/tdm/report/ctm_error/">工控机故障率</a>
  </li>

  {% ifequal report_page "credit_card_rate" %}
  <li role="presentation" class="active">
  {% else %}
  <li role="presentation">
  {% endifequal %}  
    <a href="/tdm/report/credit_card/">分校刷卡率</a>
  </li>
</ul>